package com.iha.pongzor.data;


public class HighScore implements Comparable<HighScore>{
	private String name = null;
	private int score = 0;
	private int seconds = 0;
	private String date = null;

	public HighScore(String name, int score, int seconds, String date) {

		setName(name);
		setScore(score);
		setSeconds(seconds);
		setDate(date);
	}

	public String getName() {
		return name;
	}

	private void setName(String name) {
		this.name = name;
	}

	public int getScore() {
		return score;
	}

	private void setScore(int score) {
		this.score = score;
	}

	public int getSeconds() {
		return seconds;
	}

	private void setSeconds(int seconds) {
		this.seconds = seconds;
	}

	public String getDate() {
		return date;
	}

	private void setDate(String date) {
		this.date = date;
	}

	public int compareTo(HighScore another) {
		return ((Integer)another.score).compareTo(this.score);
	}

}
